import request from '@/utils/request'

// 课程列表
export function classesRecommendList(){
	return request({
		method:"get",
		url:"/classes/classes/RecommendList",
		params:""
	})
}

// 根据标签查询课程
export function classesListForTags(id){
	return request({
		method:"get",
		url: '/classes/classes/'+id,
		params:""
	})
}

// 根据标签查询报名但是还没开始的课程
export function classesListForTagsWithNoOpen(id){
	return request({
		method:"get",
		url: `/classes/classes/NoOpen/${id}`,
		params:{}
	})
}

// 查询报名但是还没开始的课程
export function searchTextWithNoOpen(text){
	return request({
		method:"get",
		url:'/classes/classes/NoOpen/text',
		params:{
			name:text
		}
	})
}

// 搜索框出现的内容
export function searchText(text){
	return request({
		method:"get",
		url:'/classes/classes/text',
		params:{
			name:text
		}
	})
}

// 查询用户正在上的课
export function classesINGList(){
	return request({
		method:"get",
		url:"/classes/classes/INGList"
	})
}

// 
export function classesBaoMingList(){
	return request({
		method:"get",
		url:"/classes/classes/BaoMingList",
		// params:""
	})
}

//查询用户已结束的课
export function classesEndList(){
	return request({
		methos:"get",
		url:"/classes/classes/endList",
		params:""
	})
}